package com.lm.tika.example;

import org.apache.tika.Tika;

import java.io.File;
import java.io.IOException;

public class TikaJpgExample {
    public static void main(String[] args) throws IOException {
        Tika tika = new Tika();
        File file = new File("example.jpeg");
        String fileType = tika.detect(file);
        System.out.println("📂文件类型: " + fileType);
    }
}
